//
//  DTKNetManger.h
//  DTBaseTool_Example
//
//  Created by 葛悦彣 on 2023/2/20.
//  Copyright © 2023 GGG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

NS_ASSUME_NONNULL_BEGIN


@interface DTKNetManger : NSObject

+ (id)GET:(NSString *)path parameters:(id)parameters progress:(void(^)(NSProgress *downloadProgress))downloadProgress completionHandler:(void(^)(id responseObj, NSError *error))completionHandler;

+ (id)GET:(NSString *)path apiKey:(NSString *)apiKey parameters:(id)parameters progress:(void(^)(NSProgress *downloadProgress))downloadProgress completionHandler:(void(^)(id responseObj, NSError *error))completionHandler;

+ (id)POST:(NSString *)path parameters:(id)parameters progress:(void(^)(NSProgress *downloadProgress))downloadProgress completionHandler:(void(^)(id responseObj, NSError *error))completionHandler;

+ (id)POST:(NSString *)path parameters:(id)parameters headerField:(NSString *)token progress:(void (^)(NSProgress *))downloadProgress completionHandler:(void (^)(id responseObj, NSError *error))completionHandler;

@end
NS_ASSUME_NONNULL_END
